class UpdateError(Exception):
	def __init__(self, error=None):
		if error:
			self.error_code = error
	def _get_code(self):
		return self.error_code
	code = property(_get_code)
class BadAuthError(UpdateError):
	error_code = 'badauth'
class NoChangeError(UpdateError):
	error_code = 'nochg'
class NoHostError(UpdateError):
	error_code = 'nohost'
class WrongUserError(UpdateError):
	error_code = 'wronguser'